home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2006 December / PCWDEC06.iso / Software / Trial / Paint Shop Pro XI / Data1.cab / _923B612A46E34A9A8D13DD632FD3EB24 < prev    next >
Encoding:
Text File  |  2006-08-04  |  4.9 KB  |  143 lines

  1. from PSPApp import *
  2.  
  3. def ScriptProperties():
  4.     return {
  5.         'Author': 'Angela M. Cable',
  6.         'Copyright': '2002, for freeware distribution only',
  7.         'Description': "A watercolor effect.",
  8.         'Host': 'Paint Shop Pro',
  9.         'Host Version': '8.00'
  10.         }
  11.  
  12. def Do(Environment):
  13.     App.Do( Environment, 'LayerDuplicate', {
  14.             'GeneralSettings': {
  15.                 'ExecutionMode': App.Constants.ExecutionMode.Default
  16.                 }
  17.             })
  18.  
  19.     App.Do( Environment, 'SelectLayer', {
  20.             'Path': (0,-1,[],App.Constants.Boolean.false), 
  21.             'GeneralSettings': {
  22.                 'ExecutionMode': App.Constants.ExecutionMode.Silent
  23.                 }
  24.             })
  25.  
  26.     App.Do( Environment, 'BrushStrokes', {
  27.             'Angle': 102, 
  28.             'Bristles': 256, 
  29.             'Color': (0,0,0), 
  30.             'Density': 25, 
  31.             'Length': 10, 
  32.             'Opacity': 50, 
  33.             'Softness': 20, 
  34.             'Width': 4, 
  35.             'GeneralSettings': {
  36.                 'ExecutionMode': App.Constants.ExecutionMode.Silent, 
  37.                 'PreviewVisible': App.Constants.Boolean.true, 
  38.                 'AutoProof': App.Constants.Boolean.false
  39.                 }
  40.             })
  41.  
  42.     App.Do( Environment, 'SelectLayer', {
  43.             'Path': (0,1,[],App.Constants.Boolean.false), 
  44.             'GeneralSettings': {
  45.                 'ExecutionMode': App.Constants.ExecutionMode.Silent
  46.                 }
  47.             })
  48.  
  49.     App.Do( Environment, 'EdgePreservingSmooth', {
  50.             'SmoothingFactor': 30, 
  51.             'GeneralSettings': {
  52.                 'ExecutionMode': App.Constants.ExecutionMode.Silent, 
  53.                 'PreviewVisible': App.Constants.Boolean.true, 
  54.                 'AutoProof': App.Constants.Boolean.false
  55.                 }
  56.             })
  57.  
  58.     App.Do( Environment, 'LayerDuplicate', {
  59.             'GeneralSettings': {
  60.                 'ExecutionMode': App.Constants.ExecutionMode.Default
  61.                 }
  62.             })
  63.  
  64.     App.Do( Environment, 'SelectLayer', {
  65.             'Path': (0,-1,[],App.Constants.Boolean.false), 
  66.             'GeneralSettings': {
  67.                 'ExecutionMode': App.Constants.ExecutionMode.Silent
  68.                 }
  69.             })
  70.  
  71.     App.Do( Environment, 'ColoredEdges', {
  72.             'Intensity': 7, 
  73.             'Blur': 3, 
  74.             'Color': (0,0,0), 
  75.             'Luminance': 31, 
  76.             'GeneralSettings': {
  77.                 'ExecutionMode': App.Constants.ExecutionMode.Silent, 
  78.                 'PreviewVisible': App.Constants.Boolean.true, 
  79.                 'AutoProof': App.Constants.Boolean.false
  80.                 }
  81.             })
  82.  
  83.     App.Do( Environment, 'LayerProperties', {
  84.             'General': {
  85.                 'Opacity': None, 
  86.                 'Name': None, 
  87.                 'IsVisible': None, 
  88.                 'IsTransparencyLocked': None, 
  89.                 'LinkSet': None, 
  90.                 'UseHighlight': None, 
  91.                 'PaletteHighlightColor': None, 
  92.                 'GroupLink': None, 
  93.                 'BlendMode': App.Constants.BlendMode.Dodge
  94.                 }, 
  95.             'BlendRanges': None, 
  96.             'Path': (0,0,[],App.Constants.Boolean.false), 
  97.             'BrightnessContrast': None, 
  98.             'ChannelMixer': None, 
  99.             'ColorBalance': None, 
  100.             'CurveParams': None, 
  101.             'HSL': None, 
  102.             'Threshold': None, 
  103.             'Levels': None, 
  104.             'Posterize': None, 
  105.             'Mask': None, 
  106.             'GeneralSettings': {
  107.                 'ExecutionMode': App.Constants.ExecutionMode.Silent, 
  108.                 'PreviewVisible': App.Constants.Boolean.true, 
  109.                 'AutoProof': App.Constants.Boolean.false
  110.                 }
  111.             })
  112.  
  113.     App.Do( Environment, 'LayerProperties', {
  114.             'General': {
  115.                 'Opacity': None, 
  116.                 'Name': None, 
  117.                 'IsVisible': None, 
  118.                 'IsTransparencyLocked': None, 
  119.                 'LinkSet': None, 
  120.                 'UseHighlight': None, 
  121.                 'PaletteHighlightColor': None, 
  122.                 'GroupLink': None, 
  123.                 'BlendMode': App.Constants.BlendMode.HardLight
  124.                 }, 
  125.             'BlendRanges': None, 
  126.             'Path': (0,1,[],App.Constants.Boolean.false), 
  127.             'BrightnessContrast': None, 
  128.             'ChannelMixer': None, 
  129.             'ColorBalance': None, 
  130.             'CurveParams': None, 
  131.             'HSL': None, 
  132.             'Threshold': None, 
  133.             'Levels': None, 
  134.             'Posterize': None, 
  135.             'Mask': None, 
  136.             'GeneralSettings': {
  137.                 'ExecutionMode': App.Constants.ExecutionMode.Silent, 
  138.                 'PreviewVisible': App.Constants.Boolean.true, 
  139.                 'AutoProof': App.Constants.Boolean.false
  140.                 }
  141.             })
  142.  
  143.